package cn.dujc.superkid.adapter;

import android.support.annotation.Nullable;

import java.util.List;

import cn.dujc.core.adapter.BaseAdapter;
import cn.dujc.core.adapter.BaseViewHolder;
import cn.dujc.superkid.bean.ChannelEntity;

/**
 * @author du
 * date 2018/8/1 下午11:30
 */
public class ChannelAdapter extends BaseAdapter<ChannelEntity> {

    public ChannelAdapter(@Nullable List<ChannelEntity> data) {
        super(data);
        mLayoutResId = android.R.layout.simple_list_item_1;
    }

    @Override
    protected void convert(BaseViewHolder helper, ChannelEntity item) {
        helper.setText(android.R.id.text1,item.getChannel_name());
    }
}
